class CreateCulturalHeritageParts < ActiveRecord::Migration
  def self.up
    create_table :cultural_heritage_parts do |t|
      t.string :name, :null => false
      t.text :description

      t.integer :deleted, :default=>0
      #Id del patrimonio cultural del cual forma parte, puede ser nulo
      t.integer :cultural_heritage

      t.timestamps
    end
  end

  def self.down
    drop_table :cultural_heritage_parts
  end
end
